package com.hc.music.controller;

import com.hc.music.common.R;
import com.hc.music.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("banner")
public class BannerController {

    @Autowired
    BannerService bannerService;

    @RequestMapping("selectAll")
    public R selectAll(){
        return bannerService.selectAll();
    }
}
